﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CsGL.OpenGL;
using System.Threading;

namespace TEST3D
{
    public partial class Form1 : Form
    {
        OpenGLBase myGLView;


        public Form1()
        {
            Control.CheckForIllegalCrossThreadCalls = false;
            myGLView = new OpenGLBase();
            myGLView.Dock = DockStyle.Fill;
            myGLView.Location = new Point(0, 0);
            myGLView.Visible = true;
            Controls.Add(myGLView);
            ResumeLayout(false);
            InitializeComponent();
        }

        private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }
    }
}
